package com.pioneer.cloudstorage.service;

import com.pioneer.cloudstorage.pojo.dto.SharesDTO;
import com.pioneer.cloudstorage.pojo.entity.Result;
import com.pioneer.cloudstorage.pojo.vo.SharesList;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;


public interface SharesService {
    String share(SharesDTO sharesDTO) throws Exception;

    List<SharesList> getShareList() throws Exception;

    Result deleteShare(String shareId);

    Result getShare(String shareId, String password) throws Exception;

    void downloadShare(String shareId, String password, HttpServletResponse response) throws Exception;
}
